<!--首页-->
<template>
   <div style="background-color: rgb(254,254,254);height: 100%;">
      <el-row :span="24">
        <el-col :span="10">
          <img src="../../../static/img/background2.png" height="122" width="728" style="margin-top: 10%;margin-left: 80px;"/>
          <img src="../../../static/img/background1.jpg" height="330" width="500" style="margin-top:8%;margin-left: 50px;"/></el-col>
        <el-col :span="14">
           <el-card shadow="never" style="width: 85%;margin-top: 10%;">
             <div slot="header" class="clearfix">
               <span>消息通知</span>
             </div>
             <div style="color: grey;font-size: 13px;">
               <div v-for="obj in dataList">
                 <span>🙂&nbsp;&nbsp;&nbsp;{{obj.n_content}}</span>
                 <el-divider></el-divider>
               </div>
             </div>
           </el-card>
        </el-col>
      </el-row>
   </div>
</template>
<script>
  import {queryNoticeNowTime} from '@/api/system'
  export default{
    created(){
        this.getDataList();
    },
    data () {
      return {
          dataList:[]
      }
    },

    methods: {
      getDataList(){
        queryNoticeNowTime().then(res=>{
           if(res.code == 200){
               this.dataList = res.data;
           }
        });
      }
    }
  }
</script>
